package demo
import "fmt"

type SayHello interface {
	SayHello()
}

type Chinese struct {
	Name string
}

func (person Chinese) SayHello() {
	fmt.Println("你好")
}

func (person Chinese) NiuYangGe(){
	fmt.Printf("扭秧歌")
}

type American struct {
	name string
}

func (person American) SayHello() {
	fmt.Println("hello")
}

func Greet(s SayHello) {
	s.SayHello()
}

